package cc.uncarbon.module.appapi.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 后台管理-新增/编辑数据表注释 DTO
 */
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class BookOrderInsertOrUpdateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
    private Long id;

    @Schema(description = "金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "金额不能为空")
    private BigDecimal money;

    @Schema(description = "收支类型(0支出，1收入）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "收支类型(0支出，1收入）不能为空")
    private Integer orderType;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED)

    private Long userId;

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "不能为空")
    private Long categoryId;

    @Schema(description = "备注")
    @Size(max = 255, message = "【备注】最长255位")
    private String remark;

    @Schema(description = "明细日期")
    private String day;

}
